/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package medicalstorebilling.ulti;

import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.text.DateFormatter;



/**
 *
 * @author Administrator
 */
public class TimeStringConverter extends org.jdesktop.beansbinding.Converter<Date,String> {

    @Override
    public String convertForward(Date value) {
        SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy");
        return df.format(value);
    }

    @Override
    public Date convertReverse(String value) {
        return DateConvert.convertDate(value);
    }
    
}
